package cn.ccenjie.wsy.config.vcode;

import org.springframework.security.authentication.AbstractAuthenticationToken;

import java.util.Collections;

public class VcodeToken extends AbstractAuthenticationToken {

    private String vcode;

    public VcodeToken(String vcode) {
        super(Collections.emptyList());
        this.vcode = vcode;
    }


    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return this.vcode;
    }
}
